﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace RM.Entities.Data.Map
{
    public class CandidateMap : ClassMap<Candidate>
    {
        public CandidateMap()
        {
            Id(x => x.Id).Not.Nullable();
            Map(x => x.FirstName).Length(50).Not.Nullable();
            Map(x => x.LastName).Length(50);
            Map(x => x.FullName).Length(100);
            Map(x => x.FatherName).Length(50);
            Map(x => x.DoB);
            Map(x => x.EmailAddress);
            Map(x => x.Phone);
            Map(x => x.ReferedBy);
            Map(x => x.AppliedForPost);
            Map(x => x.TotalExp);
            Map(x => x.ShortListed);
            Map(x => x.Photo);
            Map(x => x.Resume);
            Map(x => x.Sex);
            Map(x => x.CurrentLocation);
            Map(x => x.Country);
            Map(x => x.MobileNo);
            Map(x => x.CountryCode);
            Map(x => x.AreaCode);
            Map(x => x.LandLineNo);
            Map(x => x.TotalExpYr);
            Map(x => x.TotalExpMonth);
            Map(x => x.CurrAnualSalaryLac);
            Map(x => x.CurrAnualSalaryThsnd);
            Map(x => x.Currency);
            Map(x => x.FuncArea);
            Map(x => x.CreatedDate).Not.Nullable();
            Map(x => x.ModifiedDate).Not.Nullable();
            References(x => x.CreatedBy);
            References(x => x.ModifiedBy);
            

        }
    }
}
